class AppStyle {
  late String appHomeBackImage;
  late String appBackImage;
  late AppColor colors;
  late AppPlayImage playImages;

  AppStyle.fromJson(Map<String, dynamic> json) {
    appHomeBackImage = json['appHomeBackImage'] ?? '';
    appBackImage = json['appBackImage'] ?? '';
    colors = AppColor.fromJson(json['color'] ?? {});
    playImages = AppPlayImage.fromJson(json['appPlayImages'] ?? {});
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['appHomeBackImage'] = appHomeBackImage;
    data['appBackImage'] = appBackImage;
    data['color'] = colors.toJson();
    data['appPlayImages'] = playImages.toJson();
    return data;
  }
}

class AppColor {
  late String pickTitleColor;
  late String pickCardNameColor;
  late String pickCardBackColor;
  late String pickCardClickBackColor;

  late String playTitleColor;
  late String playRollFontColor;
  late String playThemeColor;
  late String playButFontColor;
  late String playButBackColor;
  late String playRollBarColor;

  AppColor.fromJson(Map<String, dynamic> json) {
    pickTitleColor = json['pickTitleColor'] ?? '#ff000000';
    pickCardNameColor = json['pickCardNameColor'] ?? '#ff000000';
    pickCardBackColor = json['pickCardBackColor'] ?? '#7fffffff';
    pickCardClickBackColor = json['pickCardClickBackColor'] ?? '#d6ffffff';
    playTitleColor = json['playTitleColor'] ?? '#ff000000';
    playRollFontColor = json['playRollFontColor'] ?? '#ff000000';
    playThemeColor = json['playThemeColor'] ?? '#ff000000';
    playButFontColor = json['playButFontColor'] ?? '#ff000000';
    playButBackColor = json['playButBackColor'] ?? '#ffffffff';
    playRollBarColor = json['playRollBarColor'] ?? '#ff000000';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['pickTitleColor'] = pickTitleColor;
    data['pickCardNameColor'] = pickCardNameColor;
    data['pickCardBackColor'] = pickCardBackColor;
    data['pickCardClickBackColor'] = pickCardClickBackColor;
    data['playTitleColor'] = playTitleColor;
    data['playRollFontColor'] = playRollFontColor;
    data['playThemeColor'] = playThemeColor;
    data['playButFontColor'] = playButFontColor;
    data['playButBackColor'] = playButBackColor;
    data['playRollBarColor'] = playRollBarColor;
    return data;
  }
}

class AppPlayImage {
  late String backImage;

  AppPlayImage.fromJson(Map<String, dynamic> json) {
    backImage = json['backImage'] ?? '';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['backImage'] = backImage;
    return data;
  }
}
